package com.blb.service.impl;

import com.blb.entity.Company;
import com.blb.mapper.CompanyMapper;
import com.blb.service.ICompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tb
 * @since 2020-05-20
 */
@Service
public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements ICompanyService {

    @Resource
    CompanyMapper companyMapper;

    @Override
    public Integer getCount() {
        return companyMapper.getCount();
    }

    @Override
    public List<Company> getPages(Integer start, Integer length, String companyRole, String createUser, String companyName, String companyStatus) {
        return companyMapper.getPages(start, length, companyRole, createUser, companyName, companyStatus);
    }

    @Override
    public Company selectByCompanyName(String companyName) {
        return companyMapper.selectByCompanyName(companyName);
    }
}
